package com.bsoft.exchange.config.dozer;

import org.dozer.DozerBeanMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class DozerBeanMapperConfigure {
	static DozerBeanMapper mapper;
    @Bean
    public DozerBeanMapper mapper(){
        mapper = new DozerBeanMapper();
//        mapper.addMapping(beanMappingBuilder);
        return mapper;
    }
    
/*    BeanMappingBuilder beanMappingBuilder = new BeanMappingBuilder() {
        @Override
        protected void configure() {           
            mapping(UserDomain.class, UserVo.class, TypeMappingOptions.oneWay())
                    .fields("teacher.name","teacherName" );
//            mapping(User.class, UserVo2.class, TypeMappingOptions.oneWay())
//                    .fields("teacher.name","teacherName" );

        }
    };*/
}